﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;

using nERP.ViewModel._Admin.DicFieldVMs;
using nERP.ViewModel._Admin.FrameworkUserVMs;
using nERP.ViewModel.Wms.OtherOutWarehouseDetailVMs;
using nERP.Model.Wms;
using nERP.Model;
namespace nERP.ViewModel.Wms.OtherOutWarehouseVMs
{
    public partial class OtherOutWarehouseVM : BaseCRUDVM<OtherOutWarehouse>
    {
        

        public OtherOutWarehouseVM()
        {
            
            SetInclude(x => x.OtherOutType);
            SetInclude(x => x.MakeUser);
            SetInclude(x => x.InvoicesImage);
            SetInclude(x => x.OtherOutWarehouseDetail_OtherOutWarehouse);

        }

        protected override void InitVM()
        {
            

        }

        public override DuplicatedInfo<OtherOutWarehouse> SetDuplicatedCheck()
        {
            var rv = CreateFieldsInfo(SimpleField(x => x.OtherOutWarehouseCode));
            return rv;

        }

        public override async Task DoAddAsync()        
        {
            
            await base.DoAddAsync();

        }

        public override async Task DoEditAsync(bool updateAllFields = false)
        {
            
            await base.DoEditAsync();

        }

        public override async Task DoDeleteAsync()
        {
            await base.DoDeleteAsync();

        }
    }
}
